<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    // let arr2 = new Array(1, 2, 3, 4, 5);
    let arr1 = [1, 2, 3, 4, 5, 6];
    // console.log(arr1.length)
    // console.log(arr1[2])
    // arr1[4]=50

    // arr1.push(7)
    // console.log(arr1)
    // arr1.pop()
    // console.log(arr1)
    // console.log(arr1.indexOf(4))

    arr1.forEach(function (item, index) {
        console.log(item, index)
    })
</script>
</body>
</html>
